obj-m += 11_mutex.o
11_mutex-y = 11_mutex_基本示例.o

obj-m += 12_mutex.o
12_mutex-y = 12_mutex_字符设备_唯一设备访问.o

obj-m += 21_spinlock.o
21_spinlock-y = 21_spinlock_自旋锁.o

obj-m += 31_rwlock.o
31_rwlock-y = 31_rwlock_读写锁.o

obj-m += 32_rwlock.o
32_rwlock-y = 32_rwlock_sysfs文件的读写锁.o

obj-m += 41_atomic.o
41_atomic-y = 41_atomic_原子锁_计数.o

PWD := $(CURDIR)
all:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean